package com.umakr.ax.security.model.vo;

import com.umakr.ax.security.model.Role;

/**
 * @author gx
 * @since 2017/5/22
 */
public class RoleVO {
    Long roleId;
    String rolename;

    @Override
    public String toString() {
        return "RoleVO{" +
                "roleId=" + roleId +
                ", rolename='" + rolename + '\'' +
                ", description='" + description + '\'' +
                '}';
    }

    String description;

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public String getRolename() {
        return rolename;
    }

    public void setRolename(String rolename) {
        this.rolename = rolename;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
    public Role toRole(){
        Role role = new Role();
        role.setId(this.getRoleId());
        role.setRoleDescription(this.getDescription());
        role.setRoleName(this.getRolename());
        return role;
    }
}
